package com.myblog.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.extension.activerecord.Model;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableField;
    import java.io.Serializable;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

/**
* <p>
    * 
    * </p>
*
* @author lhj
* @since 2022-06-15
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class ArticleCommentsRel extends Model<ArticleCommentsRel> {

    private static final long serialVersionUID = 1L;

            /**
            * 文章id
            */
            @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;

            /**
            * 评论id
            */
        @TableField("sid")
    private Integer sid;


    @Override
    protected Serializable pkVal() {
        return this.aid;
    }

}
